<!DOCTYPE html>
<html lang="zh-CN">
 	<head>
    	<meta charset="utf-8">
    	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    	<meta name="viewport" content="width=device-width, initial-scale=1">
    	<link rel="shortcut icon" href="{{ url_for('static',filename='favicon.ico') }}">
    	<title>{{ title }}</title>
	
		{% assets "home_css" %}	
		<link rel="stylesheet" href="{{ ASSET_URL }}" />
		{% endassets %}	

	    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
	    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	    <!--[if lt IE 9]>
	      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
	      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<nav class="navbar navbar-default navbar-fixed-top">
			<div class="container-fluid">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
						<span class="sr-only">导航</span>
						<span class='icon-bar'></span>
						<span class='icon-bar'></span>
						<span class='icon-bar'></span>
					</button>
					<a class="navbar-brand" href="#">
						Qeeniao Backend
					</a>
				</div>
				
				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav">
						<li>
							<a href="{{ url_for('spider_itunes') }}">
								iTunes爬虫 <span class="sr-only">(current)</span>
							</a>
						</li>
						<li>
							<a href="{{ url_for('spider_apple') }}">
								Apple爬虫 <span class="sr-only">(current)</span>
							</a>
						</li>
					</ul>
				</div>
			</div>
		</nav>
		
	    <div class="container margintop10">
	        {% for message in get_flashed_messages() %}
	            <div class="alert alert-success" role="alert">{{ message }}</div>
		    {% endfor %}
	    </div>

    	{% block body %}{% endblock %}

    	{% assets "home_js" %}	
		<script type="text/javascript" src='{{ ASSET_URL }}'></script>
		{% endassets %}

	</body>
</html>